<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
	<th:block th:include="include :: header('新增个码预充值')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-channelAccountAmount-add">
			<div class="form-group">
				<label class="col-sm-3 control-label">银行名称：</label>
				<div class="col-sm-8">
					<select name="opType" id="opType" class="form-control">
						<option value="提现">提现</option>
						<option value="充值">充值</option>
					</select>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label">支付类型：</label>
				<div class="col-sm-8">
					<select  id="payType"  name="payType" class="form-control m-b">
						<option th:each="dict : ${payerPayTypes}" th:text="${dict.payLabel}" th:value="${dict.payType}"></option>
					</select>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label">账号：</label>
				<div class="col-sm-8">
					<input id="account" name="account" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label">金额：</label>
				<div class="col-sm-8">
					<input id="amount" name="amount" class="form-control" type="number" value="0.01">
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label">备注：</label>
				<div class="col-sm-8">
					<textarea name="remark" autocomplete="off" maxlength="500" class="form-control" rows="3"></textarea>
				</div>
			</div>
		</form>
	</div>
    <div th:include="include::footer"></div>
    <script type="text/javascript">
		var prefix = ctx + "channel/channelAccountAmount"
		$("#form-channelAccountAmount-add").validate({
			rules:{
				amount: {
					max: 50000,
					min: 0.01,
					required: true
				},
			},
			focusCleanup: true
		});
		
		function submitHandler() {
	        if ($.validate.form()) {
	            $.operate.save(prefix + "/add", $('#form-channelAccountAmount-add').serialize());
	        }
	    }
	</script>
</body>
</html>
